package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="ReceiveFile"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class ReceiveFile implements Serializable {

    /** identifier field */
    private Long id;

    /** nullable persistent field */
    private String receiveGov;

    /** nullable persistent field */
    private String receiveDate;

    /** nullable persistent field */
    private String fileId;

    /** nullable persistent field */
    private String reason;

    /** persistent field */
    private long processInstanceId;

    /** nullable persistent field */
    private String state;

    /** full constructor */
    public ReceiveFile(String receiveGov, String receiveDate, String fileId, String reason, long processInstanceId, String state) {
        this.receiveGov = receiveGov;
        this.receiveDate = receiveDate;
        this.fileId = fileId;
        this.reason = reason;
        this.processInstanceId = processInstanceId;
        this.state = state;
    }

    /** default constructor */
    public ReceiveFile() {
    }

    /** minimal constructor */
    public ReceiveFile(long processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Long"
     *             column="Id"
     *             unsaved-value="0"
     *         
     */
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="ReceiveGov"
     *             length="300"
     *         
     */
    public String getReceiveGov() {
        return this.receiveGov;
    }

    public void setReceiveGov(String receiveGov) {
        this.receiveGov = receiveGov;
    }

    /** 
     *            @hibernate.property
     *             column="ReceiveDate"
     *             length="23"
     *         
     */
    public String getReceiveDate() {
        return this.receiveDate;
    }

    public void setReceiveDate(String receiveDate) {
        this.receiveDate = receiveDate;
    }

    /** 
     *            @hibernate.property
     *             column="FileId"
     *             length="100"
     *         
     */
    public String getFileId() {
        return this.fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    /** 
     *            @hibernate.property
     *             column="Reason"
     *             length="2147483647"
     *         
     */
    public String getReason() {
        return this.reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    /** 
     *            @hibernate.property
     *             column="ProcessInstanceID"
     *             length="18"
     *             not-null="true"
     *         
     */
    public long getProcessInstanceId() {
        return this.processInstanceId;
    }

    public void setProcessInstanceId(long processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    /** 
     *            @hibernate.property
     *             column="State"
     *             length="1"
     *         
     */
    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
